//
//  GRStoreClassModel.m
//  YC_GRice
//
//  Created by Feng Liu on 2018/8/28.
//  Copyright © 2018年 YeCai. All rights reserved.
//

#import "GRStoreClassModel.h"

@implementation GRStoreClassModel

- (BOOL)modelCustomTransformFromDictionary:(NSDictionary *)dic{
    NSArray *categories = dic[@"subCategoryList"];
    
    if (Array(categories)) {
        NSMutableArray *categoryArr = [NSMutableArray array];
        for (NSDictionary *dic in categories) {
            GRStoreClassModel *model = [GRStoreClassModel yy_modelWithDictionary:dic];
            [categoryArr addObject:model];
        }
        self.categoryList = categoryArr;
    }
    
    return YES;
}

+ (NSArray *)modelPropertyBlacklist {
    return @[
             @"subCategoryList"];
}


@end
